package com.youkeyi.ddy.cloud.common.api.basic.crm.config;

import com.youkeyi.ddy.cloud.common.api.basic.crm.config.dto.CrmCustomerConfigListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.config.param.CrmCustomerConfigCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.config.param.CrmCustomerConfigUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.config.param.CrmCustomerConfigQueryCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * CrmCustomerConfigCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/crm/customer/config/fallback")
public class CrmCustomerConfigCloudServiceFallback implements CrmCustomerConfigCloudService {

    @Override
    public CrmCustomerConfigListCloudDto query(CrmCustomerConfigQueryCloudParam param) {
        return new CrmCustomerConfigListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(CrmCustomerConfigCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(CrmCustomerConfigUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
